<script setup lang="ts">
    import Child1 from './Child1.vue'
    import Child2 from './Child2.vue'
    import mitter from '@/util/mitter'
    import {ref} from 'vue'
    let bao = ref('好多钱')
</script>
<template>
    <h1>mitter-Father</h1>
    <button @click="mitter.emit('test',bao)">传数据给Child2</button>
    <hr>
    <Child1/>
    <Child2/>
</template>